import Vue from 'vue'
import App from './App'
import tabBar from './components/tabbar/tabbar.vue'
import playView from './components/playView/playView.vue'
import store from './store'  
import { http } from './util/api.js'
Vue.prototype.$store = store

Vue.config.productionTip = false

Vue.prototype.$http = http

App.mpType = 'app'

Vue.component('tab-bar', tabBar)
Vue.component('play-view', playView)

// 时间过滤器
Vue.filter('timeSort', (time)=>{
	var b = parseInt(time)
	var c = b%60||0
	var d = parseInt(b/60)||0
	c = c>9?c:'0'+c
	return d+":"+c
})

const app = new Vue({
    ...App
})
app.$mount()
// Vue.prototype.$iac = uni.createInnerAudioContext()
// console.log(Vue.prototype.$iac)
